package com.diandian.backend.dingding.data.clients;

import com.alibaba.fastjson.JSONObject;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "business-middle-platform", url = "http://47.104.211.43:8080", path = "")
public interface MiddleClient {

    // 新增日志
    @PostMapping("/entrance/middle/platform/router")
    BaseResult getDeptList(@RequestHeader(value = "clientKey") String clientKey,
                      @RequestHeader(value = "clientSecret")  String clientSecret,
                      @RequestHeader(value = "cmd") String cmd, @RequestBody JSONObject data);

    // 批量同步线下门店
    @PostMapping("/entrance/middle/platform/router")
    BaseResult getAllDeptUserDetail(@RequestHeader(value = "clientKey") String clientKey,
                      @RequestHeader(value = "clientSecret")  String clientSecret,
                      @RequestHeader(value = "cmd") String cmd, @RequestBody JSONObject data);
}
